#ifndef _TEXT_
#define _TEXT_

#include "aerial\Object\Object.h"

namespace air {
	class SceneManager;
	struct Event;

	class Text : public IGuiObject
	{
	public:
		Text(hgeResourceManager* hgeResMan, float x, float y, float w, float h, Event* _evnt = NULL);
		Text(hgeResourceManager* hgeResMan, float w, float h, Event* _evnt = NULL);
		~Text();
		void	SetMode(int _align);
		void	SetText(const char *_text);
		void	printf(const char *format, ...);
		virtual void MouseOver(bool bOver);
		virtual bool MouseLButton(bool bDown);
		virtual void Render();
		virtual bool addToGui(SceneManager*, IGuiObject* _anchor = 0);

	private:
		hgeFont* font;
		hgeSprite* backgroundColor;
		float	tx, ty;
		int		align;
		char	text[256];
		Event* evnt;
		bool mouseOver;
	};
}

#endif